import numpy as np
import matplotlib.pyplot as plt
(test1,test2,test3,test4)= np.loadtxt("mall_sales.csv",delimiter=",",skiprows=1,usecols=(1,2,3,4),unpack=True)
test1_mean = np.mean(test1)
test1_ptp = np.ptp(test1)
# print(test1_ptp)
test2_mean = np.mean(test2)
test2_ptp = np.ptp(test2)
test3_mean = np.mean(test3)
test3_ptp = np.ptp(test3)
test4_mean = np.mean(test4)
test4_ptp = np.ptp(test4)
a= [test1_mean,test2_mean,test3_mean,test4_mean]
b = [test1_ptp,test2_ptp,test3_ptp,test4_ptp]
print(a)
t = np.arange(len(a))
f =np.arange(len(b))
plt.plot(t,a)
plt.plot(f,b,)
plt.show()


